package com.ihelp.service.impl;

import com.ihelp.pojo.ServiceType;
import com.ihelp.mapper.ServiceTypeMapper;
import com.ihelp.service.ServiceTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LiuZiMing
 * @since 2023-05-23
 */
@Service
public class ServiceTypeServiceImpl extends ServiceImpl<ServiceTypeMapper, ServiceType> implements ServiceTypeService {

    @Autowired
    private ServiceTypeMapper serviceTypeMapper;
    @Override
    public List<ServiceType> getAllServiceType() {
        return serviceTypeMapper.selectList(null);
    }

    @Override
    public ServiceType getServiceTypeById(Integer id) {
        return serviceTypeMapper.selectById(id);
    }
}
